package com.xinan.utils;


public class Constants {
    /**系统常用参数配置**/
    public static int PAGESIZE = 20;
    public static String SAVESUCCESS = "保存成功!";
    public static String SAVEFAILED = "保存失败!";
    public static String EDITSUCCESS = "修改成功!";
    public static String EDITFAILED = "修改失败!";
    public static String DELETESUCCESS = "删除成功!";
    public static String DELETEFAILED = "删除失败!";
    public static String SAVEISNO = "用户名存在!";
    public static String SAVEISALL = "存在此数据!";

    /**session中存储对象名称的定义**/
    public static String LOGIN_USER = "LOGIN_USER";
    public static String USER_NAME = "YHM";
    public static String CN_NAME = "XM";
    public static String USER_ORG = "USER_ORG";

    /**系统业务信息定义**/
    public static String LOGIN_WX = "用户无效";
    public static String LOGIN_ERROR = "登录失败，请确认是否输入正确的用户名和密码";
    public static String HAS_CHILDREN = "删除失败，请先删除其下的子权限之后，再删除该权限!";
    public static String LOGIN_URL = ResourceUtils.getString("system","sys.loginUrl","login.html");
    public static String INDEX_URL = ResourceUtils.getString("system","sys.indexUrl","index.html");

    /**工作流签收、审核、回退定义**/
    public static String CLAIMSUCCESS = "签收成功!";
    public static String CLAIMFAILED = "签收失败!";
    public static String APPROVESUCCESS = "审核成功!";
    public static String APPROVEFAILED = "审核失败!";
    public static String BACKSUCCESS = "回退成功!";
    public static String BACKFAILED = "回退失败!";
    public static String DOSUCCESS = "办理成功!";
    public static String DOFAILED = "办理失败!";

    /**缓存对象名称定义**/
    public static String MODEL_CACHE = "MODEL";               //模型缓存键值
    public static String MODEL_PD_CACHE = "PD_MODEL";         //频度模型缓存键值
    public static String MODEL_CONDITION = "CONDITION";       //模型条件缓存键值
    public static String MODEL_PD_CONDITION = "PD_CONDITION"; //频度模型缓存键值
    public static String MODEL_KEY = "MODELIST";              //模型列表，暂不使用
    public static String DATA_PERM_CACHE = "DATA_PERM";       //数据权限缓存
    public static String ADDRESS_BOOK = "ADDRESSBOOK";        //通讯录缓存

    /**电子邮件发送配置**/
    public static String EMAIL_TITLE;
    public static String EMAIL_USERNAME;
    public static String EMAIL_PASSWORD;
    public static String EMAIL_PROTOCOL;
    public static String EMAIL_HOST;
    /**aes key**/
    public static String KEY="hxkjoabg";

}
